package com.dmxh.api;

import com.dmxh.fallBack.SellerFallBack;
import com.dmxh.pojo.TbSeller;
import com.dmxh.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "dongdongshop-seller-service",fallbackFactory = SellerFallBack.class)//熔断降级逻辑
public interface SellerAPI {

    @PostMapping("/seller/queryByName")
    public TbSeller queryByName(@RequestBody String name);

    @GetMapping("/seller/queyById")//此接口无用
    public Result queryByIdVoid(@RequestParam Integer id);
}
